package cn.dyw.cloudmusic.thread;

import cn.dyw.cloudmusic.http.CloudMusicHttpRequest;
import cn.dyw.cloudmusic.http.InitMusicParams;
import cn.dyw.cloudmusic.http.SaveHandle;

/**
 *
 * @author dyw770
 */
public class HttpCrawlRunnable implements Runnable {

    private InitMusicParams initMusicParams;

    private SaveHandle saveHandle;

    private CloudMusicHttpRequest cloudMusicHttpRequest;

    public HttpCrawlRunnable(InitMusicParams initMusicParams, SaveHandle saveHandle, CloudMusicHttpRequest cloudMusicHttpRequest) {
        this.initMusicParams = initMusicParams;
        this.saveHandle = saveHandle;
        this.cloudMusicHttpRequest = cloudMusicHttpRequest;
    }

    @Override
    public void run() {
        cloudMusicHttpRequest.startCall(saveHandle, initMusicParams);
    }
}
